package com.vgemv.jsutilitysdk.String;

import java.util.ArrayList;

public class JsStringManager {

    /**
     * 判断数组中的字符串是否都是合法的. 非空,长度>0
     * @param strings
     * @return
     */
    public static boolean isStringsValid(ArrayList<String> strings) {
        if(strings == null) {
            return false;
        }
        for(String string : strings) {
            if(string == null || string.length() == 0) {
                return false;
            }
        }
        return true;
    }

    public static boolean isStringValid(String string) {
        if(string == null || string.length() == 0) {
            return false;
        }
        return true;
    }
}
